<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
.box{width: 400px;height: 400px;}
#box1{background-color: aqua;}
#box2{background-color: black;}
#box3{background-color: blue;}
#box4{background-color: blueviolet;}
#box5{background-color: crimson;}
</style>
<body>

</body>
<!-- 锚点
  用途:定位到页面位置,不会存在页面跳转
  location.hash记录锚点信息
-->
<a href="#box5">链接</a>
<!-- div.box[id="box$"]*5 -->
<div class="box" id="box1"></div>
<div class="box" id="box2"></div>
<div class="box" id="box3"></div>
<div class="box" id="box4"></div>
<div class="box" id="box5"></div>
</html>
